package com.bestcem.xm.member.dao.mapper;

import com.bestcem.xm.member.entity.mysql.MemberQueryBaseFieldDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 联系人查询字段mapper
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/9/16
 */
@Mapper
public interface MemberQueryBaseFieldMapper {
    /**
     * 根据 id 获取基础字段
     *
     * @param id
     * @return
     */
    List<MemberQueryBaseFieldDo> findByQueryId(@Param("queryId") String id);

    /**
     * 批量新增
     *
     * @param memberQueryBaseFieldDos
     */
    void batchCreateMemberQueryBaseField(@Param("list") List<MemberQueryBaseFieldDo> memberQueryBaseFieldDos);

    /**
     * 根据 queryId 删除数据
     *
     * @param id
     */
    void deleteByQueryId(@Param("queryId") String id);
}
